 
// import { Plugin } from 'vue'





import { defineComponent } from 'vue'
export type CompWithInstall = ReturnType<typeof defineComponent>;


export function withInstall(comp:CompWithInstall){
    comp.install = function(app){
        app.component(comp.name,comp) // 将组件注册成全局的组件
    } 
    return comp
}